package com.itheima.demo;

import java.util.Scanner;

/*
public class Demo2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        String s = sc.nextLine();
        st(s);
    }

    public static char st(String s) {
        char[] chars = s.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            System.out.println(chars[i]);
        }
      */
/* *//*
*/
/* for (int i = 0; i < s.length(); i++) {
            //i :字符串的每一个索引
            char c = s.charAt(i);
            System.out.println(c);*//*
*/
/*
        }
        //return c;*//*

   // }
}
*/
